package com.example.backend.entitly.mysql.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品规格表
 *
 * @TableName product_specs
 */
@TableName(value = "product_specs")
@Data
public class ProductSpecs implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 规格ID
     */
    @TableId(type = IdType.AUTO)
    private Integer specId;
    /**
     * 商品ID
     */
    private Integer productId;
    /**
     * 规格名称
     */
    private String specName;
    /**
     * 规格值
     */
    private String specValue;
    /**
     * 价格调整
     */
    private BigDecimal priceAdjustment;
    /**
     * 库存数量
     */
    private Integer stock;
    /**
     * SKU编码
     */
    private String skuCode;
    /**
     * 创建时间
     */
    private Date createdAt;
    /**
     * 更新时间
     */
    private Date updatedAt;
    /**
     * 0-正常 1-删除
     */
    private Integer deleted;
    /**
     * 删除时间
     */
    private Date deletedAt;
}